// 第一个部署
// 1、SR、SSR、UR 限制了发行数量 (部署时完成)
// 2、需要设置一个minter, bindBox 盲盒合约，用于开盲盒后铸造 (部署后完成) setMinter 方法
// gas:  0.06BNB
// address: 0x9cB811C7E14c4b7743b580BA607cDD6793f1371F
const { BigNumber } = require('ethers');

async function main() {

    const nftName = "testDog";
    const nftSymbol = "TDog";
    const nftUrl = "https://nftswap-hm.oss-cn-chengdu.aliyuncs.com/metadata/";
    const SRtotalSupply = 6000;
    const SSRTotalSupply = 3000;
    const URTotalSupply = 1000;


    const nftStruggleDog = await ethers.getContractFactory("StruggleDog");
    const instance = await nftStruggleDog.deploy(SRtotalSupply,SSRTotalSupply, URTotalSupply, nftName, nftSymbol, nftUrl);
    await instance.deployed();
    console.log("nftStruggleDog deployed to:", instance.address);
}

main()
    .then(() => process.exit(0))
    .catch((error) => {
        console.error(error);
        process.exit(1);
    });
